<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*,dsp.web.*" errorPage="" %>
<%
request.setCharacterEncoding("GB2312");
%>
<%
int roomid = Integer.parseInt((String)session.getAttribute("roomid"));
String username = (String)session.getAttribute("username");
Message msg = new Message();

msg.setRoomid(roomid);
msg.setUsername(username);
msg.setSpeaker(username);
msg.setContent(username);
MessageList.addMsg(msg);

session.setAttribute("roomid", "0");
UserList.changeRoomid(username,0);
response.sendRedirect("board.jsp");
%>
